package Controller;
import Model.*;
import java.util.*;


public class EmployeeCtr
{
   
    private EmployeeCtr()
    {
       EmployeeCont.getInstance();
    }

   public static void AddEmployee(Employee e)
   {
       EmployeeCont.getInstance().addEmployee(e);
    }
    
    public static void DeleteEmployee(long theID)
    {
        for(int i=0;i<EmployeeCont.getCont().size();i++)
        {
            if(EmployeeCont.getCont().get(i).getID()==theID)EmployeeCont.getCont().remove(i);
        }
    }
    
    public static void SearchEmployee(long theID)
    {
        for(int i=0;i<EmployeeCont.getCont().size();i++)
        {
            if(EmployeeCont.getCont().get(i).getID()==theID)System.out.println("Customer exists");
            else System.out.println("Customer doesn`t exist");
        }

    }
}
